package com.aifast.system.fd.entity;

import com.aifast.common.dict.DictBind;
import com.aifast.common.dict.DictBindType;
import com.aifast.common.dict.DictFormatType;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 全国高校信息对象 fd_school
 *
 * @author fujian
 * @date 2022-08-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FdSchool implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** Pk */
    @ExcelProperty("Pk")
    private Long id;

    /** 城市 */
    @ExcelProperty("城市")
    @DictBind(tableName = "fd_area", columns = "name", mode = DictBindType.JOIN, target = "cityName")
    private Long cityId;

    /** 办学层次 */
    @ExcelProperty("办学层次")
    @DictBind(type = "schoolLevel")
    private Long level;

    /** 名称 */
    @ExcelProperty("名称")
    private String name;

    /** 省份 */
    @ExcelProperty("省份")
    @DictBind(tableName = "fd_area", columns = "name", mode = DictBindType.JOIN, target = "provinceName")
    private Long provinceId;

    /** 类型 */
    @ExcelProperty("类型")
    @DictBind(type = "schoolType")
    private String type;

}
